'''
共有属性方法
私有属性方法
__

构造方法 __init__
__str__()

'''
class Person:
    '''
    this is Person!  __doc__
    '''
    name='Tom'
    gender='male'
    age=25
    __money=8000
    def __init__(self,name,age):
        self.name=name
        self.age=age
        print("#"*50)
    '''
    this is say
    '''
    def say(self):
        print("my name is %s,i have %d"%(self.name,self.__money))
        self.__spa()
        return 0
    def __spa(self):
        print("%s want a spa"%self.name)
    def __str__(self):
        return "persor"

print(Person.name)
p=Person('Join',28)
print(p.name,p.age)
print(p)
print(p.__doc__)














class Car:
    color='Red'
    def run(self):
        print(self.color,"car run")
# bmw=Car()
# bmw.run()

